<template>
    <div>
        <h1>Home</h1>
        <van-button type="success" @click="router.push('/login')">成功按钮</van-button>
    </div>
</template>

<script setup>
import { useRouter } from 'vue-router';
const router=useRouter()

</script>

<style scoped>

</style>